# coding: utf-8
from ..op_basic import as_op
import pandas as pd


@as_op('get_dummies')
def get_dummies(df, *args, **kwargs):
    '''
    同pd.get_dummies
    转换所有的列：get_dummies(df, columns=df.columns, dummy_na=True)
    转换指定的列：get_dummies(df, columns = columns, dummy_na=True)

    drop_first: 可以尝试
    '''
    return pd.get_dummies(df, *args, **kwargs)
